<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src='/js/vue.js'></script>
    <div id='app'>
        <p>{{msg}}</p>
    </div>
<br>
    <!-- 模版分离分两种方式 -->
    <!-- 第一种方式：scipt标签，类型为text/x-template -->
    
    <script type="text/x-template" id="cpn">
        <div>
            <h2>标题</h2>
            <p>内容</p>
            <button>按钮</button>
        </div>
    </script>

    <script>
        let app = new Vue({
            el:'#app',
            data:{
                msg:'hello word'
            }
        })
    </script>
</body>
</html>